<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::cuda::StereoBeliefPropagation Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d1/d1a/namespacecv_1_1cuda.html">cuda</a></li><li class="navelem"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html">StereoBeliefPropagation</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="../../df/d58/classcv_1_1cuda_1_1StereoBeliefPropagation-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::cuda::StereoBeliefPropagation Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../d1/d1e/group__cuda.html">CUDA-accelerated Computer Vision</a> &raquo; <a class="el" href="../../dd/d47/group__cudastereo.html">Stereo Correspondence</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Class computing stereo correspondence using the belief propagation algorithm. :  
 <a href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#details">More...</a></p>

<p><code>#include &lt;opencv2/cudastereo.hpp&gt;</code></p>
<div class="dynheader">
Inheritance diagram for cv::cuda::StereoBeliefPropagation:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.png" usemap="#cv::cuda::StereoBeliefPropagation_map" alt=""/>
  <map id="cv::cuda::StereoBeliefPropagation_map" name="cv::cuda::StereoBeliefPropagation_map">
<area href="../../d2/d6e/classcv_1_1StereoMatcher.html" title="The base class for stereo correspondence algorithms. " alt="cv::StereoMatcher" shape="rect" coords="0,56,204,80"/>
<area href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. " alt="cv::Algorithm" shape="rect" coords="0,0,204,24"/>
<area href="../../d7/d09/classcv_1_1cuda_1_1StereoConstantSpaceBP.html" title="Class computing stereo correspondence using the constant space belief propagation algorithm..." alt="cv::cuda::StereoConstantSpaceBP" shape="rect" coords="0,168,204,192"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3e67269c9b88e72d43708222e1372655"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a3e67269c9b88e72d43708222e1372655">compute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> left, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> right, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> disparity, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream)=0</td></tr>
<tr class="separator:a3e67269c9b88e72d43708222e1372655"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a381446ab436269d86cf6701b85387c02"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a381446ab436269d86cf6701b85387c02">compute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> data, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> disparity, <a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())=0</td></tr>
<tr class="memdesc:a381446ab436269d86cf6701b85387c02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the stereo correspondence operator that finds the disparity for the specified data cost.  <a href="#a381446ab436269d86cf6701b85387c02">More...</a><br /></td></tr>
<tr class="separator:a381446ab436269d86cf6701b85387c02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f4bc465a6130e1a9d89ebfc4b42df55"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a7f4bc465a6130e1a9d89ebfc4b42df55">getDataWeight</a> () const =0</td></tr>
<tr class="memdesc:a7f4bc465a6130e1a9d89ebfc4b42df55"><td class="mdescLeft">&#160;</td><td class="mdescRight">data weight  <a href="#a7f4bc465a6130e1a9d89ebfc4b42df55">More...</a><br /></td></tr>
<tr class="separator:a7f4bc465a6130e1a9d89ebfc4b42df55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6bace2ee37ff8569f3f1e9ac58a016b"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#af6bace2ee37ff8569f3f1e9ac58a016b">getDiscSingleJump</a> () const =0</td></tr>
<tr class="memdesc:af6bace2ee37ff8569f3f1e9ac58a016b"><td class="mdescLeft">&#160;</td><td class="mdescRight">discontinuity single jump  <a href="#af6bace2ee37ff8569f3f1e9ac58a016b">More...</a><br /></td></tr>
<tr class="separator:af6bace2ee37ff8569f3f1e9ac58a016b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15bb3e862781ad50be2526271ff7d40e"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a15bb3e862781ad50be2526271ff7d40e">getMaxDataTerm</a> () const =0</td></tr>
<tr class="memdesc:a15bb3e862781ad50be2526271ff7d40e"><td class="mdescLeft">&#160;</td><td class="mdescRight">truncation of data cost  <a href="#a15bb3e862781ad50be2526271ff7d40e">More...</a><br /></td></tr>
<tr class="separator:a15bb3e862781ad50be2526271ff7d40e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7e4ad93b1bfe0d46d1de35ec1dc63ed"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#af7e4ad93b1bfe0d46d1de35ec1dc63ed">getMaxDiscTerm</a> () const =0</td></tr>
<tr class="memdesc:af7e4ad93b1bfe0d46d1de35ec1dc63ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">truncation of discontinuity cost  <a href="#af7e4ad93b1bfe0d46d1de35ec1dc63ed">More...</a><br /></td></tr>
<tr class="separator:af7e4ad93b1bfe0d46d1de35ec1dc63ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33808fc4c796cbdc60c39da83965215e"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a33808fc4c796cbdc60c39da83965215e">getMsgType</a> () const =0</td></tr>
<tr class="memdesc:a33808fc4c796cbdc60c39da83965215e"><td class="mdescLeft">&#160;</td><td class="mdescRight">type for messages (CV_16SC1 or CV_32FC1)  <a href="#a33808fc4c796cbdc60c39da83965215e">More...</a><br /></td></tr>
<tr class="separator:a33808fc4c796cbdc60c39da83965215e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49e2e0700fe6ad51d80b34d4fdc9b2d2"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a49e2e0700fe6ad51d80b34d4fdc9b2d2">getNumIters</a> () const =0</td></tr>
<tr class="memdesc:a49e2e0700fe6ad51d80b34d4fdc9b2d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of BP iterations on each level  <a href="#a49e2e0700fe6ad51d80b34d4fdc9b2d2">More...</a><br /></td></tr>
<tr class="separator:a49e2e0700fe6ad51d80b34d4fdc9b2d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ba96a6ab36a5c3355a3821c0522f753"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a2ba96a6ab36a5c3355a3821c0522f753">getNumLevels</a> () const =0</td></tr>
<tr class="memdesc:a2ba96a6ab36a5c3355a3821c0522f753"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of levels  <a href="#a2ba96a6ab36a5c3355a3821c0522f753">More...</a><br /></td></tr>
<tr class="separator:a2ba96a6ab36a5c3355a3821c0522f753"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc588e1bbd3713e4520af5e349fd648"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#abbc588e1bbd3713e4520af5e349fd648">setDataWeight</a> (double data_weight)=0</td></tr>
<tr class="separator:abbc588e1bbd3713e4520af5e349fd648"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae26d0eca3406ae9449054de5531a4abd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#ae26d0eca3406ae9449054de5531a4abd">setDiscSingleJump</a> (double disc_single_jump)=0</td></tr>
<tr class="separator:ae26d0eca3406ae9449054de5531a4abd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a170d8ce45fad99435290e7d6ca0c8968"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a170d8ce45fad99435290e7d6ca0c8968">setMaxDataTerm</a> (double max_data_term)=0</td></tr>
<tr class="separator:a170d8ce45fad99435290e7d6ca0c8968"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbd5b1a9fc089e9ebed870d28a25579b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#acbd5b1a9fc089e9ebed870d28a25579b">setMaxDiscTerm</a> (double max_disc_term)=0</td></tr>
<tr class="separator:acbd5b1a9fc089e9ebed870d28a25579b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acceee66fe8604d9293e12b498578a41e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#acceee66fe8604d9293e12b498578a41e">setMsgType</a> (int msg_type)=0</td></tr>
<tr class="separator:acceee66fe8604d9293e12b498578a41e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a600d2701f37f1247e1cba922c11eb827"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#a600d2701f37f1247e1cba922c11eb827">setNumIters</a> (int iters)=0</td></tr>
<tr class="separator:a600d2701f37f1247e1cba922c11eb827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac346c8b7f7f2e200e8874c3399bf1000"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#ac346c8b7f7f2e200e8874c3399bf1000">setNumLevels</a> (int levels)=0</td></tr>
<tr class="separator:ac346c8b7f7f2e200e8874c3399bf1000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcv_1_1StereoMatcher"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1StereoMatcher')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html">cv::StereoMatcher</a></td></tr>
<tr class="memitem:a03f7087df1b2c618462eb98898841345 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a03f7087df1b2c618462eb98898841345">compute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> left, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> right, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> disparity)=0</td></tr>
<tr class="memdesc:a03f7087df1b2c618462eb98898841345 inherit pub_methods_classcv_1_1StereoMatcher"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes disparity map for the specified stereo pair.  <a href="../../d2/d6e/classcv_1_1StereoMatcher.html#a03f7087df1b2c618462eb98898841345">More...</a><br /></td></tr>
<tr class="separator:a03f7087df1b2c618462eb98898841345 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ab4290840ac7a9270af455f74b30b98 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a9ab4290840ac7a9270af455f74b30b98">getBlockSize</a> () const =0</td></tr>
<tr class="separator:a9ab4290840ac7a9270af455f74b30b98 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ca2c2ab88e7ecac58720134867ea072 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a0ca2c2ab88e7ecac58720134867ea072">getDisp12MaxDiff</a> () const =0</td></tr>
<tr class="separator:a0ca2c2ab88e7ecac58720134867ea072 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd790d22519d3c0d4fcb8e3210d11b13 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#abd790d22519d3c0d4fcb8e3210d11b13">getMinDisparity</a> () const =0</td></tr>
<tr class="separator:abd790d22519d3c0d4fcb8e3210d11b13 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3a3d5f5a49f77be0b965557e17d9fdd inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#ab3a3d5f5a49f77be0b965557e17d9fdd">getNumDisparities</a> () const =0</td></tr>
<tr class="separator:ab3a3d5f5a49f77be0b965557e17d9fdd inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb686d0de4551e86306f10509632fa24 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#afb686d0de4551e86306f10509632fa24">getSpeckleRange</a> () const =0</td></tr>
<tr class="separator:afb686d0de4551e86306f10509632fa24 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1be922bd3111d427fd2ddc8448537c35 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a1be922bd3111d427fd2ddc8448537c35">getSpeckleWindowSize</a> () const =0</td></tr>
<tr class="separator:a1be922bd3111d427fd2ddc8448537c35 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38814e8a33d59f4eb5db33de04fe8c34 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a38814e8a33d59f4eb5db33de04fe8c34">setBlockSize</a> (int blockSize)=0</td></tr>
<tr class="separator:a38814e8a33d59f4eb5db33de04fe8c34 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede8620506ff7f27d106fff25777514d inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#aede8620506ff7f27d106fff25777514d">setDisp12MaxDiff</a> (int disp12MaxDiff)=0</td></tr>
<tr class="separator:aede8620506ff7f27d106fff25777514d inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae67a506bfe7fbd37444b6713aea1c0ad inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#ae67a506bfe7fbd37444b6713aea1c0ad">setMinDisparity</a> (int minDisparity)=0</td></tr>
<tr class="separator:ae67a506bfe7fbd37444b6713aea1c0ad inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abacfe4e5760e86b48d0c19bd4106c2fc inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#abacfe4e5760e86b48d0c19bd4106c2fc">setNumDisparities</a> (int numDisparities)=0</td></tr>
<tr class="separator:abacfe4e5760e86b48d0c19bd4106c2fc inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c9106923f87592b98bf53e90bcba020 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a3c9106923f87592b98bf53e90bcba020">setSpeckleRange</a> (int speckleRange)=0</td></tr>
<tr class="separator:a3c9106923f87592b98bf53e90bcba020 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad21033d76ad7cdf36a5c8bb6cd946d43 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#ad21033d76ad7cdf36a5c8bb6cd946d43">setSpeckleWindowSize</a> (int speckleWindowSize)=0</td></tr>
<tr class="separator:ad21033d76ad7cdf36a5c8bb6cd946d43 inherit pub_methods_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1Algorithm')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a827c8b2781ed17574805f373e6054ff1">Algorithm</a> ()</td></tr>
<tr class="separator:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a8ae826127fa0f1f8d10a24841bd376f8">~Algorithm</a> ()</td></tr>
<tr class="separator:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">clear</a> ()</td></tr>
<tr class="memdesc:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the algorithm state.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">More...</a><br /></td></tr>
<tr class="separator:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">empty</a> () const</td></tr>
<tr class="memdesc:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a> is empty (e.g. in the very beginning or after unsuccessful read.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">More...</a><br /></td></tr>
<tr class="separator:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a286fc82744ccab3d248aca44524266a9">getDefaultName</a> () const</td></tr>
<tr class="separator:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads algorithm parameters from a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">More...</a><br /></td></tr>
<tr class="separator:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a0a880744bc4e3f45711444571df47d67">save</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename) const</td></tr>
<tr class="separator:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">write</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="memdesc:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores algorithm parameters in a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">More...</a><br /></td></tr>
<tr class="separator:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp;fs, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()) const</td></tr>
<tr class="memdesc:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">More...</a><br /></td></tr>
<tr class="separator:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ae832759d923616b73102037c15c43b58"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html#ae832759d923616b73102037c15c43b58">estimateRecommendedParams</a> (int width, int height, int &amp;ndisp, int &amp;iters, int &amp;levels)</td></tr>
<tr class="memdesc:ae832759d923616b73102037c15c43b58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses a heuristic method to compute the recommended parameters ( ndisp, iters and levels ) for the specified image size ( width and height ).  <a href="#ae832759d923616b73102037c15c43b58">More...</a><br /></td></tr>
<tr class="separator:ae832759d923616b73102037c15c43b58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcv_1_1Algorithm')"><img src="../../closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads algorithm from the file.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">More...</a><br /></td></tr>
<tr class="separator:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">loadFromString</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;strModel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads algorithm from a String.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">More...</a><br /></td></tr>
<tr class="separator:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads algorithm from the file node.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">More...</a><br /></td></tr>
<tr class="separator:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classcv_1_1StereoMatcher"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classcv_1_1StereoMatcher')"><img src="../../closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html">cv::StereoMatcher</a></td></tr>
<tr class="memitem:a6e000cf59a6aabbc8bef2e2a5c132aca inherit pub_types_classcv_1_1StereoMatcher"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <br />
&#160;&#160;<a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a6e000cf59a6aabbc8bef2e2a5c132acaa6aadf3b0bd4503bde2531592e5f90e0b">DISP_SHIFT</a> = 4, 
<br />
&#160;&#160;<a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html#a6e000cf59a6aabbc8bef2e2a5c132acaa5b4b128a781d8002c3bc2640912295a4">DISP_SCALE</a> = (1 &lt;&lt; DISP_SHIFT)
<br />
 }</td></tr>
<tr class="separator:a6e000cf59a6aabbc8bef2e2a5c132aca inherit pub_types_classcv_1_1StereoMatcher"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcv_1_1Algorithm')"><img src="../../closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a68eeca71617474ad3d4561786f0289d2">writeFormat</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="separator:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class computing stereo correspondence using the belief propagation algorithm. : </p>
<p>The class implements algorithm described in <a class="el" href="../../d0/de3/citelist.html#CITEREF_Felzenszwalb2006">[74]</a> . It can compute own data cost (using a truncated linear model) or use a user-provided data cost.</p>
<dl class="section note"><dt>Note</dt><dd><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html" title="Class computing stereo correspondence using the belief propagation algorithm. : ">StereoBeliefPropagation</a> requires a lot of memory for message storage:</dd></dl>
<p class="formulaDsp">
\[width \_ step \cdot height \cdot ndisp \cdot 4 \cdot (1 + 0.25)\]
</p>
<p>and for data cost storage:</p>
<p class="formulaDsp">
\[width\_step \cdot height \cdot ndisp \cdot (1 + 0.25 + 0.0625 + \dotsm + \frac{1}{4^{levels}})\]
</p>
<p>width_step is the number of bytes in a line including padding.</p>
<p><a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html" title="Class computing stereo correspondence using the belief propagation algorithm. : ">StereoBeliefPropagation</a> uses a truncated linear model for the data cost and discontinuity terms:</p>
<p class="formulaDsp">
\[DataCost = data \_ weight \cdot \min ( \lvert Img_Left(x,y)-Img_Right(x-d,y) \rvert , max \_ data \_ term)\]
</p>
<p class="formulaDsp">
\[DiscTerm = \min (disc \_ single \_ jump \cdot \lvert f_1-f_2 \rvert , max \_ disc \_ term)\]
</p>
<p>For more details, see <a class="el" href="../../d0/de3/citelist.html#CITEREF_Felzenszwalb2006">[74]</a> .</p>
<p>By default, <a class="el" href="../../de/d7a/classcv_1_1cuda_1_1StereoBeliefPropagation.html" title="Class computing stereo correspondence using the belief propagation algorithm. : ">StereoBeliefPropagation</a> uses floating-point arithmetics and the CV_32FC1 type for messages. But it can also use fixed-point arithmetics and the CV_16SC1 message type for better performance. To avoid an overflow in this case, the parameters must satisfy the following requirement:</p>
<p class="formulaDsp">
\[10 \cdot 2^{levels-1} \cdot max \_ data \_ term &lt; SHRT \_ MAX\]
</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/d6e/classcv_1_1StereoMatcher.html" title="The base class for stereo correspondence algorithms. ">StereoMatcher</a> </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a3e67269c9b88e72d43708222e1372655"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e67269c9b88e72d43708222e1372655">&#9670;&nbsp;</a></span>compute() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::compute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>disparity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

</div>
</div>
<a id="a381446ab436269d86cf6701b85387c02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a381446ab436269d86cf6701b85387c02">&#9670;&nbsp;</a></span>compute() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::compute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>disparity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;&#160;</td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables the stereo correspondence operator that finds the disparity for the specified data cost. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>User-specified data cost, a matrix of msg_type type and Size(&lt;image columns&gt;*ndisp, &lt;image rows&gt;) size. </td></tr>
    <tr><td class="paramname">disparity</td><td>Output disparity map. If disparity is empty, the output type is CV_16SC1 . Otherwise, the type is retained. In 16-bit signed format, the disparity values do not have fractional bits. </td></tr>
    <tr><td class="paramname">stream</td><td><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html" title="This class encapsulates a queue of asynchronous calls. ">Stream</a> for the asynchronous version. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae832759d923616b73102037c15c43b58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae832759d923616b73102037c15c43b58">&#9670;&nbsp;</a></span>estimateRecommendedParams()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::cuda::StereoBeliefPropagation::estimateRecommendedParams </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>ndisp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>iters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>levels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Uses a heuristic method to compute the recommended parameters ( ndisp, iters and levels ) for the specified image size ( width and height ). </p>

</div>
</div>
<a id="a7f4bc465a6130e1a9d89ebfc4b42df55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f4bc465a6130e1a9d89ebfc4b42df55">&#9670;&nbsp;</a></span>getDataWeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::cuda::StereoBeliefPropagation::getDataWeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>data weight </p>

</div>
</div>
<a id="af6bace2ee37ff8569f3f1e9ac58a016b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6bace2ee37ff8569f3f1e9ac58a016b">&#9670;&nbsp;</a></span>getDiscSingleJump()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::cuda::StereoBeliefPropagation::getDiscSingleJump </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>discontinuity single jump </p>

</div>
</div>
<a id="a15bb3e862781ad50be2526271ff7d40e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15bb3e862781ad50be2526271ff7d40e">&#9670;&nbsp;</a></span>getMaxDataTerm()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::cuda::StereoBeliefPropagation::getMaxDataTerm </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>truncation of data cost </p>

</div>
</div>
<a id="af7e4ad93b1bfe0d46d1de35ec1dc63ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7e4ad93b1bfe0d46d1de35ec1dc63ed">&#9670;&nbsp;</a></span>getMaxDiscTerm()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::cuda::StereoBeliefPropagation::getMaxDiscTerm </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>truncation of discontinuity cost </p>

</div>
</div>
<a id="a33808fc4c796cbdc60c39da83965215e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33808fc4c796cbdc60c39da83965215e">&#9670;&nbsp;</a></span>getMsgType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::cuda::StereoBeliefPropagation::getMsgType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>type for messages (CV_16SC1 or CV_32FC1) </p>

</div>
</div>
<a id="a49e2e0700fe6ad51d80b34d4fdc9b2d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49e2e0700fe6ad51d80b34d4fdc9b2d2">&#9670;&nbsp;</a></span>getNumIters()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::cuda::StereoBeliefPropagation::getNumIters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>number of BP iterations on each level </p>

</div>
</div>
<a id="a2ba96a6ab36a5c3355a3821c0522f753"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ba96a6ab36a5c3355a3821c0522f753">&#9670;&nbsp;</a></span>getNumLevels()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::cuda::StereoBeliefPropagation::getNumLevels </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>number of levels </p>

</div>
</div>
<a id="abbc588e1bbd3713e4520af5e349fd648"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc588e1bbd3713e4520af5e349fd648">&#9670;&nbsp;</a></span>setDataWeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setDataWeight </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>data_weight</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae26d0eca3406ae9449054de5531a4abd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae26d0eca3406ae9449054de5531a4abd">&#9670;&nbsp;</a></span>setDiscSingleJump()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setDiscSingleJump </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>disc_single_jump</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a170d8ce45fad99435290e7d6ca0c8968"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a170d8ce45fad99435290e7d6ca0c8968">&#9670;&nbsp;</a></span>setMaxDataTerm()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setMaxDataTerm </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max_data_term</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acbd5b1a9fc089e9ebed870d28a25579b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbd5b1a9fc089e9ebed870d28a25579b">&#9670;&nbsp;</a></span>setMaxDiscTerm()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setMaxDiscTerm </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max_disc_term</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acceee66fe8604d9293e12b498578a41e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acceee66fe8604d9293e12b498578a41e">&#9670;&nbsp;</a></span>setMsgType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setMsgType </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>msg_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a600d2701f37f1247e1cba922c11eb827"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a600d2701f37f1247e1cba922c11eb827">&#9670;&nbsp;</a></span>setNumIters()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setNumIters </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>iters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac346c8b7f7f2e200e8874c3399bf1000"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac346c8b7f7f2e200e8874c3399bf1000">&#9670;&nbsp;</a></span>setNumLevels()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::cuda::StereoBeliefPropagation::setNumLevels </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>levels</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d8/d60/cudastereo_8hpp.html">cudastereo.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:44 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
